package com.shrfid.rfidsdk.entity;


import com.shrfid.rfidsdk.uitls.ReadTagUtils;

public class Tag {
    private byte dsfId;
    private byte[] uid;
    //天线ID
    private byte antenna;
    private byte[] blockData;

    public byte[] getBlockData() {
        return blockData;
    }

    public void setBlockData(byte[] blockData) {
        this.blockData = blockData;
    }

    public byte getDsfId() {
        return dsfId;
    }

    public void setDsfId(byte dsfId) {
        this.dsfId = dsfId;
    }

    public byte[] getUid() {
        return uid;
    }

    public void setUid(byte[] uid) {
        this.uid = uid;
    }

    public byte getAntenna() {
        return antenna;
    }

    public void setAntenna(byte antenna) {
        this.antenna = antenna;
    }

    @Override
    public String toString() {
//        return "Tag{" +
//                "dsfId=" + dsfId +
//                ", uid=" + Arrays.toString(uid) +
//                ", antenna=" + antenna +
//                ", blockData=" + Utils.parse15693No(blockData) +
//                '}';
        return ReadTagUtils.parse15693No(blockData);
    }
}
